<!DOCTYPE html>
<html>

<head>
  <title>Vue.js App</title>
  <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
  <div id="app">
    <h2>{{ count }}</h2>
    <button @click="increment">点击增加</button>
  </div>

  <script>
    const app = Vue.createApp({
      data() {
        return {
          count: 0
        }
      },
      methods: {
        increment() {
          this.count++
        }
      }
    })

    app.mount('#app')
  </script>
</body>

</html>